<?php 
function get_pagging($url_pagging,$segments,$perpage,$total_rows){
		$ci = &get_instance();
		$ci->load->library('pagination');
		$config['base_url']		= $url_pagging;
		$config['uri_segment']	= $segments;
		$config['per_page']		= $perpage;
		$config['total_rows']	= $total_rows;
		
		$config['first_link'] = '&laquo;&laquo;';
		$config['first_tag_open'] = '<li>';
		$config['first_tag_close'] = '</li>';
		$config['last_link'] = '&raquo;&raquo;';
		$config['last_tag_open'] = '<li>';
		$config['last_tag_close'] = '</li>';

		$config['full_tag_open'] = '<div class="col-xs-12 col-sm-6 col-md-6"><div class="pagination_wp"><ul class="pagination">';
		$config['full_tag_close'] = '</ul></div></div>';
		$config['cur_tag_open'] = '<li class="active"><a href="">';
		$config['cur_tag_close'] = '</a></li>';
		
		$config['num_tag_open'] = '<li>';
		$config['num_tag_close'] = '</li>';
		
		$config['prev_link'] = '&laquo;';
		$config['prev_tag_open'] = '<li>';
		$config['prev_tag_close'] = '</li>';

		$config['next_link'] = '&raquo;';
		$config['next_tag_open'] = '<li>';
		$config['next_tag_close'] = '</li>';
		$ci->pagination->initialize($config);
		return $ci->pagination->create_links();
}?>